

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link type="text/css" rel="stylesheet" href="${createLinkTo(dir:'css/csslxh',file:'lxh.css')}">
	<title>Create TeleBook</title>         
</head>

<style>
	.tableGray td { height:26px } 
</style>

<body style="margin:0; overflow:auto">

<table width="100%" height="23" border="0" cellpadding="0" cellspacing="0" background="${createLinkTo(dir:'imagesmain',file:'grayListBg.gif')}">
  <tr>       
	<td width="50%" style="padding-top:2px;padding-left:10px;padding-right:15px" nowrap>
		<img src="${createLinkTo(dir:'imageslxh',file:'post.gif')}">
		<g:message code="lxh.func.create"/><g:message code="lxh.display.detailName"/>
	</td>
	<td>&nbsp;</td>		
  </tr>  
</table>

<g:hasErrors bean="${teleBookInstance}">
	<div class="errors">
		<g:renderErrors bean="${teleBookInstance}" as="list" />
	</div>
</g:hasErrors>

<g:if test="${flash.message}">
	<div class="message">${flash.message}</div>
</g:if>

<g:form action="save" method="post" style="display:inline" >
	<input type="hidden" name="flag" value="${flag}">

<table align="center" class="tableGray" cellpadding="0" cellspacing="1" style="margin-top:5px;">
                    
		                            <tr>
		                                <td width="40%" align="right" bgcolor="#f6f6f6">
		                                    <label for="realname"><g:message code="TeleBook.realname"/>:&nbsp;</label>
		                                </td>
		                                <td class="value ${hasErrors(bean:teleBook,field:'realname','errors')}">
		                                    <input type="text" maxlength="50" id="realname" name="realname" value="${fieldValue(bean:teleBookInstance,field:'realname')}" class="textccc" />
		                                </td>
		                            </tr> 
                    
		                            <tr>
		                                <td width="40%" align="right" bgcolor="#f6f6f6">
		                                    <label for="mbphone"><g:message code="TeleBook.mbphone"/>:&nbsp;</label>
		                                </td>
		                                <td class="value ${hasErrors(bean:teleBook,field:'mbphone','errors')}">
		                                    <input type="text" maxlength="15" id="mbphone" name="mbphone" value="${fieldValue(bean:teleBookInstance,field:'mbphone')}" class="textccc" />
		                                </td>
		                            </tr> 
                    
		                            <tr>
		                                <td width="40%" align="right" bgcolor="#f6f6f6">
		                                    <label for="telephone"><g:message code="TeleBook.telephone"/>:&nbsp;</label>
		                                </td>
		                                <td class="value ${hasErrors(bean:teleBook,field:'telephone','errors')}">
		                                    <input type="text" maxlength="30" id="telephone" name="telephone" value="${fieldValue(bean:teleBookInstance,field:'telephone')}" class="textccc" />
		                                </td>
		                            </tr> 
                    
		                            <tr>
		                                <td width="40%" align="right" bgcolor="#f6f6f6">
		                                    <label for="email"><g:message code="TeleBook.email"/>:&nbsp;</label>
		                                </td>
		                                <td class="value ${hasErrors(bean:teleBook,field:'email','errors')}">
		                                    <input type="text" maxlength="50" id="email" name="email" value="${fieldValue(bean:teleBookInstance,field:'email')}" class="textccc" />
		                                </td>
		                            </tr> 
                    
		                            <tr>
		                                <td width="40%" align="right" bgcolor="#f6f6f6">
		                                    <label for="address"><g:message code="TeleBook.address"/>:&nbsp;</label>
		                                </td>
		                                <td class="value ${hasErrors(bean:teleBook,field:'address','errors')}">
		                                    <input type="text" maxlength="100" id="address" name="address" value="${fieldValue(bean:teleBookInstance,field:'address')}" class="textccc" />
		                                </td>
		                            </tr> 
                    
		                            <tr>
		                                <td width="40%" align="right" bgcolor="#f6f6f6">
		                                    <label for="postcode"><g:message code="TeleBook.postcode"/>:&nbsp;</label>
		                                </td>
		                                <td class="value ${hasErrors(bean:teleBook,field:'postcode','errors')}">
		                                    <input type="text" maxlength="10" id="postcode" name="postcode" value="${fieldValue(bean:teleBookInstance,field:'postcode')}" class="textccc" />
		                                </td>
		                            </tr> 
                   


	    <tr>
	    	<td align="center" colspan="2" style="height:30">
	    		<input type="submit" value="<g:message code='lxh.btn.save'/>" class="btnGray">&nbsp;
	    		<input type="button" value="<g:message code='lxh.btn.cancel'/>" class="btnGray" onclick="history.back()">
	    	</td>
	    </tr>
	    
</table>

</g:form>



</body>
</html>
